package dk.modified.reshary;

import android.os.Parcel;
import android.os.Parcelable;

public class Comment implements Parcelable {

	private int id;
	private int mediaId;
	private int parent;
	private int userid;
	private int rating; // include
	private String date; // include
	private String comment; // include
	private String commentMd5;
	private String status;
	private String reported;
	private String realname; // include
	private int social;
	private int socialId;
	private String profilePic;

	public Comment() {

	}

	public Comment(int id, int mediaId, int parent, int userid, int rating,
			String date, String comment, String commentMd5, String status,
			String reported, String realname, int social, int socialId,
			String profilePic) {
		super();
		this.id = id;
		this.mediaId = mediaId;
		this.parent = parent;
		this.userid = userid;
		this.rating = rating;
		this.date = date;
		this.comment = comment;
		this.commentMd5 = commentMd5;
		this.status = status;
		this.reported = reported;
		this.realname = realname;
		this.social = social;
		this.socialId = socialId;
		this.profilePic = profilePic;
	}

	private Comment(Parcel in) {
		id = in.readInt();
		mediaId = in.readInt();
		parent = in.readInt();
		userid = in.readInt();
		rating = in.readInt();
		date = in.readString();
		comment = in.readString();
		commentMd5 = in.readString();
		status = in.readString();
		reported = in.readString();
		realname = in.readString();
		social = in.readInt();
		socialId = in.readInt();
		profilePic = in.readString();
	}

	public int getId() {
		return id;
	}

	public int getMediaId() {
		return mediaId;
	}

	public int getParent() {
		return parent;
	}

	public int getUserid() {
		return userid;
	}

	public int getRating() {
		return rating;
	}

	public String getDate() {
		return date;
	}

	public String getComment() {
		return comment;
	}

	public String getCommentMd5() {
		return commentMd5;
	}

	public String getStatus() {
		return status;
	}

	public String getReported() {
		return reported;
	}

	public String getRealname() {
		return realname;
	}

	public int getSocial() {
		return social;
	}

	public int getSocialId() {
		return socialId;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setMediaId(int mediaId) {
		this.mediaId = mediaId;
	}

	public void setParent(int parent) {
		this.parent = parent;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public void setRating(int rating) {
		this.rating = rating;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public void setCommentMd5(String commentMd5) {
		this.commentMd5 = commentMd5;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public void setReported(String reported) {
		this.reported = reported;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public void setSocial(int social) {
		this.social = social;
	}

	public void setSocialId(int socialId) {
		this.socialId = socialId;
	}

	public String getProfilePic() {
		return profilePic;
	}

	public void setProfilePic(String profilePic) {
		this.profilePic = profilePic;
	}

	@Override
	public String toString() {
		return "Comment [id=" + id + ", mediaId=" + mediaId + ", parent="
				+ parent + ", userid=" + userid + ", rating=" + rating
				+ ", date=" + date + ", comment=" + comment + ", commentMd5="
				+ commentMd5 + ", status=" + status + ", reported=" + reported
				+ ", realname=" + realname + ", social=" + social
				+ ", socialId=" + socialId + "]";
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	public static final Parcelable.Creator<Comment> CREATOR = new Parcelable.Creator<Comment>() {
		public Comment createFromParcel(Parcel in) {
			return new Comment(in);
		}

		public Comment[] newArray(int size) {
			return new Comment[size];
		}
	};

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(id);
		dest.writeInt(mediaId);
		dest.writeInt(parent);
		dest.writeInt(userid);
		dest.writeInt(rating);
		dest.writeString(date);
		dest.writeString(comment);
		dest.writeString(commentMd5);
		dest.writeString(status);
		dest.writeString(reported);
		dest.writeString(realname);
		dest.writeInt(social);
		dest.writeInt(socialId);
		dest.writeString(profilePic);

	}

}
